package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@ApiModel("用户")
public class User {

    @ApiModelProperty("用户id")
    int id;

    @ApiModelProperty("账号")
    String account;

    @ApiModelProperty("密码")
    String password;

    @ApiModelProperty("用户类型:1 平台用户\n" +
            "2 客户\n" +
            "3 供应商\n" +
            "4 货代")
    int type;
    @ApiModelProperty(hidden = true)
    int status;

    public User(String account, String password, int type) {
        this.account = account;
        this.password = password;
        this.type = type;
    }

}
